package com.bdqn.t330.ch01.config;

import com.bdqn.t330.ch01.entity.User;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class Config {

    @Bean
    public User zhangsan(){
        return new User(1,"zhangsan",18);
    }

    @Bean
    public User lisi(){
        return new User(2,"lisi",18);
    }
}
